const _MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackPlugin=require('html-webpack-plugin');
const path = require('path');

const devMode = process.env.NODE_ENV !== 'production';



const htmlWebpackPlugin = new HtmlWebpackPlugin({
  inject: true,
  template: path.join(__dirname, '../src/template.ejs'),
  filename: 'index.html',
});

const MiniCssExtractPlugin = new _MiniCssExtractPlugin({
  // both options are optional
  chunkFilename: '[id].css',
});


module.exports = {
  htmlWebpackPlugin,
  MiniCssExtractPlugin
};
